package com.nutiteq.utils;

import javax.microedition.midlet.MIDlet;

//A hack for mpowerplayer workaround
public class DummyStarter implements Runnable {
  private final InitializedCanvas canvas;
  private final MIDlet midlet;

  public DummyStarter(final MIDlet midlet, final InitializedCanvas kmlCanvas) {
    this.midlet = midlet;
    canvas = kmlCanvas;
  }

  public void run() {
    //    try {
    //      final HttpConnection c = (HttpConnection) Connector.open("http://www.google.com",
    //          Connector.READ_WRITE);
    //      final InputStream is = c.openInputStream();
    //      c.getLength();
    //    } catch (IOException ignore) {
    //    }

    canvas.initialize();
  }
}
